<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.getSession().getServletContext().setAttribute("path",basePath);

%>
<script type="text/javascript">
function getPath(){
	var path="${path}";
	return path;	
}
</script>